home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 4 / developer source - volume 4.iso / parad / jul94 / dhfig04b.gif < prev    next >
Graphics Interchange Format  |  1996-07-02  |  27.0 KB  |  452x360  |  4-bit (15 colors)
   ocr: BARCODEEZIPAChangevalue nethod changevalue(uar eventinfo valuetvent) var digit Smallint counter Number countFrac Nunber thezip string endvar dobefault : If Zipcode is in 9 digit fornat, renove hyphen. if ZIP.s1ze0) - 10 then thezip = Z1P.substr(1,5) * <Ap.substr(f,4) else thezip - ZIP endif Sun the Zipcode digits counter : a : Set counter to zero for Digit Fron 1 to thezip.size() counter : counter * Nunber(thezip-Suosubstr(01g1t,1)) endFor If the digits total 0, the correction digit L e, else calculate correction digit (Modulo 10) countFrac L counter/10 if countFrac.fraction() - 0 then correct ...